//
//  BC_Game.h
//  CocOth
//
//  Created by BrunoCausse on 02/12/10.
//  Copyright 2010-2013 poulailler cie. All rights reserved.
//

#import <Cocoa/Cocoa.h>

@class BC_BrowserTreeNode;

extern NSString * const BCEventKey;
extern NSString * const BCSiteKey;
extern NSString * const BCDateKey;
extern NSString * const BCRoundKey;

extern NSString * const BCRootPositionKey;
extern NSString * const BCBlackKey;
extern NSString * const BCWhiteKey;
extern NSString * const BCResultKey;

extern NSString * const BCRootKey;


@interface BC_Game : NSObject {
	
	NSString *event;
	NSString *site;
	NSString *round;
	NSString *date;
	
	NSString *rootPosition;
	NSString *blackPlayer;
	NSString *whitePlayer;
	NSString *result;
	
	BC_BrowserTreeNode *root;

}


@property(readwrite, copy) NSString *event, *site, *round, *date;
@property(readwrite, copy) NSString *rootPosition, *blackPlayer, *whitePlayer, *result;
@property(readwrite, retain) BC_BrowserTreeNode *root;

+ (BC_Game *)gameWithPropertyList:(NSDictionary *)dictionary;

- (id)init;
- (id)initWithPosition:(NSString *)boardString;

- (NSDictionary *)propertyList;


@end
